package me.macd.mindoc.dao;

import me.macd.mindoc.model.BookResult;
import me.macd.mindoc.model.Books;

import java.util.List;

/**
 * Created by macd on 2018-10-10.
 */
public interface BookDao {
    int countForHomeToPager(int memberId);

    List<BookResult> findForHomeToPager(int start, int pageSize, int memberId);

    int countToPager(int memberId);

    List<BookResult> findToPager(int start, int pageSize, int memberId);

    int countByIdentify(String identify);

    List<Books> findListByIdentify(String identify, int memberId);

    int insert(Books book);
}
